<!DOCTYPE html>
<html>
<head>
    <title>车位数据查看</title>
<#include "../common/common.ftl"/>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header">一、车位基本信息</div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    项目名称：${(azProject.projectName)!}
                </div>
                <div class="layui-col-xs6">
                    幢号：${(carLot.buildNum)!}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    户号：${(carLot.houseNumStr)!}
                </div>
                <div class="layui-col-xs6">
                    建筑面积：${(carLot.buildArea)!}㎡
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    车位类型：${(carLotTypeMap[carLot.carLotType?c].name)}
                </div>
                <div class="layui-col-xs6">
                    备&#160;&#160;&#160;&#160;&#160;&#160;&#160;注：${(carLot.memo)!}
                </div>
            </div>
        <#if carLot.houseStatus==2 && carLot.chooseHouseDate??>
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    选房时间：${carLot.chooseHouseDate?string('yyyy-MM-dd')}
                </div>
                <div class="layui-col-xs6">
                    选房操作人：${(carLot.choosePerson)!}
                </div>
            </div>
        </#if>
        </div>
    </div>
<#if carLot.houseStatus==2 && carLot.contract??>
    <div class="layui-card">
        <div class="layui-card-header"><span class="jmdf-color-red">协议编号：【${(carLot.contract.contractCode)!}】被动迁人：【${(carLot.contract.name)!}】</span></div>
        <div class="layui-card-header">二、车位产权人信息<span class="jmdf-color-red">【如果没有设置产权人则默认为被动迁人】</span></div>
        <div class="layui-card-body">
            <#if (buyHousePersonList?size>0)>
                <#list buyHousePersonList as buyHousePerson>
                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            产权人姓名：${(buyHousePerson.name)!}
                        </div>
                        <div class="layui-col-xs6">
                            身份证号：${(buyHousePerson.idCard)!}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            联系方式：${(buyHousePerson.tel)!}
                        </div>
                        <div class="layui-col-xs6">
                            备&#160;&#160;&#160;&#160;&#160;&#160;&#160;注：${(buyHousePerson.memo)!}
                        </div>
                    </div>
                </#list>
            <#else>
                <div class="layui-form-item">
                    <div class="layui-col-xs6">
                        产权人姓名：${(carLot.contract.name)!}
                    </div>
                    <div class="layui-col-xs6">
                        身份证号：${(carLot.contract.idCard)!}
                    </div>
                </div>
                <div class="layui-form-item">

                    <div class="layui-col-xs6">
                        联系电话：${(carLot.contract.tel)!}
                    </div>
                </div>
            </#if>
        </div>
    </div>
<div class="layui-card">
    <div class="layui-card-header">三、其他选房信息</div>
    <div class="layui-card-body">
        <table class="layui-table">
            <tr class="layui-bg-gray">
                <th style="text-align: center;width: 8%">序号</th>
                <th style="text-align: center;width: 20%">幢号</th>
                <th style="text-align: center;width: 20%">户号</th>
                <th style="text-align: center;width: 20%">房源类型</th>
                <th style="text-align: center">建筑面积</th>
            </tr>
            <#assign index=0/>
            <#if houseList??>
                <#list houseList as houses>
                    <tr>
                        <td style="text-align: center;">${index+1}</td>
                        <td style="text-align: center;">${(houses.azProject.projectName)!}</td>
                        <td style="text-align: center;">${(houses.houseNumStr)!}</td>
                        <td style="text-align: center;">${(houseTypeMap[houses.houseType].name)!}</td>
                        <td style="text-align: center;">${(houses.buildArea)!}【<span
                                class="jmdf-color-red">${(houses.propertyArea)!}</span>+<span
                                class="jmdf-color-red">${(houses.poolArea)!}</span>】
                        </td>
                    </tr>
                </#list>
            </#if>
            <#if storageRoomList??>
                <#list storageRoomList as storageRooms>
                    <tr>
                        <td style="text-align: center;">${index+1}</td>
                        <td style="text-align: center;">${(storageRooms.azProject.projectName)!}</td>
                        <td style="text-align: center;">${(storageRooms.houseNumStr)!}</td>
                        <td style="text-align: center;">储物间</td>
                        <td style="text-align: center;">${(storageRooms.buildArea)!}</td>
                    </tr>
                </#list>
            </#if>
            <#if carLotList??>
                <#list carLotList as carLots>
                    <tr>
                        <td style="text-align: center;">${index+1}</td>
                        <td style="text-align: center;">${(carLots.azProject.projectName)!}</td>
                        <td style="text-align: center;">${(carLots.houseNumStr)!}</td>
                        <td style="text-align: center;">${(carLotTypeMap[carLots.carLotType?c].name)}</td>
                        <td style="text-align: center;">${(carLots.buildArea)!}</td>
                    </tr>
                </#list>
            </#if>
        </table>
    </div>
</#if>
</div>
</body>
</html>